package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SecurityActivityMapper;
import com.ruoyi.system.domain.SecurityActivity;
import com.ruoyi.system.service.ISecurityActivityService;

/**
 * 安防附件Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-22
 */
@Service
public class SecurityActivityServiceImpl implements ISecurityActivityService 
{
    @Autowired
    private SecurityActivityMapper securityActivityMapper;

    /**
     * 查询安防附件
     * 
     * @param saId 安防附件ID
     * @return 安防附件
     */
    @Override
    public SecurityActivity selectSecurityActivityById(Long saId)
    {
        return securityActivityMapper.selectSecurityActivityById(saId);
    }

    /**
     * 查询安防附件列表
     * 
     * @param securityActivity 安防附件
     * @return 安防附件
     */
    @Override
    public List<SecurityActivity> selectSecurityActivityList(SecurityActivity securityActivity)
    {
        return securityActivityMapper.selectSecurityActivityList(securityActivity);
    }

    /**
     * 新增安防附件
     * 
     * @param securityActivity 安防附件
     * @return 结果
     */
    @Override
    public int insertSecurityActivity(SecurityActivity securityActivity)
    {
        return securityActivityMapper.insertSecurityActivity(securityActivity);
    }

    /**
     * 修改安防附件
     * 
     * @param securityActivity 安防附件
     * @return 结果
     */
    @Override
    public int updateSecurityActivity(SecurityActivity securityActivity)
    {
        return securityActivityMapper.updateSecurityActivity(securityActivity);
    }

    /**
     * 批量删除安防附件
     * 
     * @param saIds 需要删除的安防附件ID
     * @return 结果
     */
    @Override
    public int deleteSecurityActivityByIds(Long[] saIds)
    {
        return securityActivityMapper.deleteSecurityActivityByIds(saIds);
    }

    /**
     * 删除安防附件信息
     * 
     * @param saId 安防附件ID
     * @return 结果
     */
    @Override
    public int deleteSecurityActivityById(Long saId)
    {
        return securityActivityMapper.deleteSecurityActivityById(saId);
    }
}
